package hsl.study.v2;


import java.util.UUID;

/**
 * @author HSL
 * @version 1.0
 * @data 2025/11/17 11:14
 * @desc todo
 */

public class ByteBuddyTest {
    public static void main(String[] args) {
        OrderService orderService = new OrderService();
        OrderService proxyInstance = (OrderService) new ByteBuddyProxyFactory(orderService).getProxyInstance();
        String string = UUID.randomUUID().toString();
        proxyInstance.addOrder(string);
        System.out.println("=========================");
        String order = proxyInstance.getOrder(string);
        System.out.println("查询到的订单为：" + order);
    }
}
